<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
    //    浏览器弹出警示框
    var name=prompt('输入框');
    alert('警示框');
    alert(name);
    console.log('控制台打印，f12');
    console.log(name);
// 声明多个变量，用逗号隔开
    var age=18,
    name='♪(^∇^*)',
    gz=9000;
    var shengMing;
    console.log(shengMing);//undefined 未定义的
    

    </script>
</head>
<body>
    
</body>
</html>